package com.hhss.qishi.controller;

/**
 * freemarker自动跳转
 * @Author :Administrator
 * @Description
 * @Date :2019-04-30 11:01.
 */

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Controller
public class AutoJumpController {

	@RequestMapping(value = "/autoJump")
	public ModelAndView autoJump(HttpServletRequest request, HttpServletResponse response, String url)
			throws ServletException, IOException {
		// 跳转页面
		//request.getRequestDispatcher(url).forward(request, response);
		return new ModelAndView(url);
	}
}
